package com.ruoyi.fs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseRepaymentScheduleFileMapper;
import com.ruoyi.fs.domain.FsCaseRepaymentScheduleFile;
import com.ruoyi.fs.service.IFsCaseRepaymentScheduleFileService;

/**
 * 计划文件Service业务层处理
 * 
 * @author hero
 * @date 2024-11-18
 */
@Service
public class FsCaseRepaymentScheduleFileServiceImpl implements IFsCaseRepaymentScheduleFileService 
{
    @Autowired
    private FsCaseRepaymentScheduleFileMapper fsCaseRepaymentScheduleFileMapper;

    /**
     * 查询计划文件
     * 
     * @param id 计划文件主键
     * @return 计划文件
     */
    @Override
    public FsCaseRepaymentScheduleFile selectFsCaseRepaymentScheduleFileById(Long id)
    {
        return fsCaseRepaymentScheduleFileMapper.selectFsCaseRepaymentScheduleFileById(id);
    }

    /**
     * 查询计划文件列表
     * 
     * @param fsCaseRepaymentScheduleFile 计划文件
     * @return 计划文件
     */
    @Override
    public List<FsCaseRepaymentScheduleFile> selectFsCaseRepaymentScheduleFileList(FsCaseRepaymentScheduleFile fsCaseRepaymentScheduleFile)
    {
        return fsCaseRepaymentScheduleFileMapper.selectFsCaseRepaymentScheduleFileList(fsCaseRepaymentScheduleFile);
    }

    /**
     * 新增计划文件
     * 
     * @param fsCaseRepaymentScheduleFile 计划文件
     * @return 结果
     */
    @Override
    public int insertFsCaseRepaymentScheduleFile(FsCaseRepaymentScheduleFile fsCaseRepaymentScheduleFile)
    {
        return fsCaseRepaymentScheduleFileMapper.insertFsCaseRepaymentScheduleFile(fsCaseRepaymentScheduleFile);
    }

    /**
     * 修改计划文件
     * 
     * @param fsCaseRepaymentScheduleFile 计划文件
     * @return 结果
     */
    @Override
    public int updateFsCaseRepaymentScheduleFile(FsCaseRepaymentScheduleFile fsCaseRepaymentScheduleFile)
    {
        return fsCaseRepaymentScheduleFileMapper.updateFsCaseRepaymentScheduleFile(fsCaseRepaymentScheduleFile);
    }

    /**
     * 批量删除计划文件
     * 
     * @param ids 需要删除的计划文件主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseRepaymentScheduleFileByIds(Long[] ids)
    {
        return fsCaseRepaymentScheduleFileMapper.deleteFsCaseRepaymentScheduleFileByIds(ids);
    }

    /**
     * 删除计划文件信息
     * 
     * @param id 计划文件主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseRepaymentScheduleFileById(Long id)
    {
        return fsCaseRepaymentScheduleFileMapper.deleteFsCaseRepaymentScheduleFileById(id);
    }
}
